package bean;

import java.util.ArrayList;
import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import com.sun.jersey.spi.resource.Singleton;

@Singleton
@Path("/person")
public class PersonBean {
    @GET
   @Produces("application/xml")
    public Person getPersonMessage() {
        Person person = new Person();
        person.setId("123");
        person.setName("TEST");

        Family family = new Family();
        family.setName("ttt");
        family.setRelation("형");
        List<Family> familyList = new ArrayList<Family>();
        familyList.add(family);
        person.setFamilyList(familyList);

        return person;
    }
}
